import { UserRole } from '@/types';

interface NavigationItem {
  href: string;
  label: string;
  children?: NavigationItem[];
}

interface NavigationConfig {
  [key: string]: NavigationItem[];
}

export const navigationConfig: NavigationConfig = {
  [UserRole.ADMIN]: [
    {
      href: '/',
      label: '系统概览',
    },
    {
      href: '/users',
      label: '用户管理',
      children: [
        {
          href: '/users/admins',
          label: '管理员管理',
        },
        {
          href: '/users/teachers',
          label: '教师管理',
        },
        {
          href: '/users/parents',
          label: '家长管理',
        },
      ],
    },
    {
      href: '/students',
      label: '学生管理',
    },
    {
      href: '/classes',
      label: '班级管理',
    },
    {
      href: '/notices',
      label: '通知管理',
      children: [
        {
          href: '/notices/announcement',
          label: '通知管理',
        },
        {
          href: '/notices/news',
          label: '新闻管理',
        },
      ],
    },
    {
      href: '/rewards',
      label: '奖惩管理',
    },
    {
      href: '/school',
      label: '学校信息',
    },
    {
      href: '/settings',
      label: '系统设置',
    },
  ],
  [UserRole.TEACHER]: [
    {
      href:'/',
      label:'首页',
    },
    {
      href: '/overview',
      label: '班级概况',
    },
    {
      href: '/activities',
      label: '班级动态',
    },
    {
      href: '/attendance',
      label: '考勤记录',
    },
    {
      href: '/grades',
      label: '成绩录入',
    },
    {
      href: '/homework',
      label: '作业管理',
    },
    {
      href: '/evaluation',
      label: '评价管理',
    },
    {
      href: '/rewards/submit',
      label: '奖惩提交',
    },
    {
      href: '/messages/parents',
      label: '家长消息',
    },
  ],
  [UserRole.PARENT]: [
    {
      href: '/',
      label: '学习情况',
    },
    {
      href: '/activities',
      label: '班级活动',
    },
    {
      href: '/?tab=messages',
      label: '消息中心',
    },
  ],
}; 